import request from '@/utils/request'
export const sysRole = params => {
  return request({
    url: '/sys/role',
    params
  })
}
// 新增接口
export const sysRolePost = data => {
  return request({
    url: '/sys/role',
    method: 'post',
    data
  })
}
// 删除接口
export const sysRoleDel = id => {
  return request({
    url: `/sys/role/${id}`,
    method: 'delete'
  })
}
// 编辑接口
export const sysRolePut = data => {
  return request({
    url: `/sys/role/${data.id}`,
    method: 'put',
    data
  })
}
// 获取公司信息接口
export const Company = id => {
  return request({
    url: `/company/${id}`
  })
}
